package com.example.mychat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class Friend {
    @TableId(type = IdType.AUTO)
    private int id;

    private int userId;

    private int friendId; //用户好友的id

    private int groupId; //分组id

    public Friend() {

    }

    public Friend(int userId, int friendId) {
        this.userId = userId;
        this.friendId = friendId;
        this.groupId = 0;
    }

    public Friend(int userId, int friendId, int groupId) {
        this.userId = userId;
        this.friendId = friendId;
        this.groupId = groupId;
    }
}
